package com.example.domain;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.*;
import lombok.experimental.Accessors;

@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
        chain = true
)
@EqualsAndHashCode(
        callSuper = false
)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@FluentMybatis(
        table = "user"
)
public class User extends RichEntity {

    @TableId(
            value = "id",
            auto = true
    )
    private String id;

    @TableField("name")
    private String name;

    @TableField("sex")
    private int sex;

    @TableField("age")
    private int age;
}
